var fs         = require("fs");
var http       = require("http");
var imgpath    = '/data/tfintegrated/img/';

var server = http.createServer();

server.on('request', function(req, res)
{
    var url = req.url
    if (url!=null && typeof(url)!="undefined" && url!=0)
    {
        fs.readFile(imgpath+url, function(err, data)
        {
            if(err)
            {
                return res.end('res no find')
            }
            res.end(data)
        })
    }
})

server.listen(80, function()
{
    //console.log("service start: http://localhost:80");
});